package com.aaa.controller.tables;

import com.aaa.dao.FSiteMapper;
import com.wsc.entity.FSite;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("fSite")
public class FSiteController {
    @Resource
    FSiteMapper fSiteMapper;
    @RequestMapping("select")
    public Object select(){ return fSiteMapper.selectList(null); }
    @RequestMapping("insert")
    public Integer insert(FSite menu){
        return fSiteMapper.insert(menu);
    }
    @RequestMapping("update")
    public Integer update(FSite menu){
        return fSiteMapper.updateById(menu);
    }
    @RequestMapping("delete")
    public Integer delete(Integer id){
        return fSiteMapper.deleteById(id);
    }
}
